// import com.alibaba.druid.sql.ast.SQLStatement;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

// import java.util.ArrayList;
// import java.util.List;

#include "DrdsClearDDLJobCache.h"
#include "../../visitor/MySqlASTVisitor.h"

DrdsClearDDLJobCache::DrdsClearDDLJobCache()
{
  jobIds = std::make_shared<std::list<long>>();
}
void DrdsClearDDLJobCache::accept0(MySqlASTVisitor_ptr visitor)
{
  visitor->visit(SharedObject(DrdsClearDDLJobCache));
  visitor->endVisit(SharedObject(DrdsClearDDLJobCache));
}

BOOL_ptr DrdsClearDDLJobCache::isAllJobs()
{
  return allJobs;
}

void DrdsClearDDLJobCache::setAllJobs(BOOL_ptr allJobs)
{
  this->allJobs = allJobs;
}

std::shared_ptr<std::list<long>> DrdsClearDDLJobCache::getJobIds()
{
  return jobIds;
}

void DrdsClearDDLJobCache::addJobId(long id)
{
  jobIds->push_back(id);
}
